//
//  BanBu_ThemeManager.h
//  BanBu
//
//  Created by banbu3 on 7/20/13.
//
//

#import <Foundation/Foundation.h>
@class ASINetworkQueue;
@class BanBu_ChatBackgroundSettingViewController;
@class BanBu_BubbleViewController;
@class BanBu_MagicDetailViewController;
@class WMCViewController;
@class BanBu_ChatViewController;

#define ThemeManager [BanBu_ThemeManager shareInstance]

#define kThemeDidChangeNotification @"kThemeDidChangeNotification"

@interface BanBu_ThemeManager : NSObject
{
@private
    //主题配置信息
//    NSDictionary *themeConfig;
}
//当前使用的主题名称
@property(nonatomic,copy)NSString *themeName;
//主题的配置信息
//@property(nonatomic,retain)NSDictionary *themesPath;
//已下载主题列表
@property(nonatomic,retain)NSMutableDictionary *themeDown;
//正在下载的主题
@property(nonatomic,retain)NSMutableDictionary *themeDownLoading;
//从服务期已经获取的主题列表,无考虑是否下载
@property(nonatomic,retain)NSMutableArray *themeExitArr;
//主题缓存图片路径
@property(nonatomic,retain)NSString *themePicPath;

@property (nonatomic)float tabbarHeight;
+ (BanBu_ThemeManager *)shareInstance;



-(NSString *)getThemePath;
//获取当前主题下的图片
- (UIImage *)getThemeImage:(NSString *)imageName;
//下载主题图片
-(void)downLoadThemeImageWithURL:(NSString *)_str;

@property (assign, nonatomic) BOOL download;
@property (retain, nonatomic) ASINetworkQueue * netWork;        //网络队列
@property (retain, nonatomic) BanBu_ChatBackgroundSettingViewController * chatBGView;//设置聊天背景的类
@property (retain, nonatomic) BanBu_BubbleViewController * bubbleView;               //设置气泡的类
@property (assign, nonatomic) WMCViewController * watermarkController;  //水印相机界面


@property (assign, nonatomic) NSInteger bubbleCount;    //气泡数量
//获取更多（气泡、背景）
-(void)getMore:(NSString *)query;

//下载大图
-(void)downloadBigPhoto:(NSString *)photoIndex andPhotoType:(NSString *)JorD;

#pragma mark - 魔法表情

@property (assign, nonatomic)BanBu_MagicDetailViewController * magicFaceController;

//下载魔法表情
-(void)downLoadMagicfaceWithURL:(NSMutableArray *)urlArray atIndex:(NSInteger )index;


#pragma mark - 彩蛋
@property (assign, nonatomic) BanBu_ChatViewController * chatViewController;
//下载彩蛋图片和语音
-(BOOL)downloadEastereggImage:(NSString *)imageUrl music:(NSString *)musicUrl;
@end
